package cachex

const ForumReviewLike string = "forum:review:like" // ##25.03.24##
const ForumQuestionLike string = "forum:question:like"
const ForumAnswerLike string = "forum:answer:like"
const ForumQuestionReply string = "forum:question:reply"
const ForumCommentUpvote string = "forum:comment:upvote"
const ForumCommentDownvote string = "forum:comment:downvote"

const ChatUserSubscribe string = "chat:user:subscribe"

const ForumRecommendBrand string = "forum:recommend:brand" // 品牌日历ID

const ForumHomepage string = "forum:homepage" // 首页第一页
const ForumBrand string = "forum:brand"       // 品牌日历页面

// const ForumStickyFrontpage string = "forum:sticky:frontpage"
// const ForumStickyPerfume string = "forum:sticky:perfume"

const ForumActivityFeed string = "forum:feed:activity"
const ForumTrendingFeed string = "forum:feed:trending"

const LocalMemberLevel string = "system#memberLevel"
const LocalMemberRank string = "setting#memberRank"
const LocalMemberTask string = "setting#memberTask"

const ForumNewReview uint32 = 1
const ForumNewPhotoPost uint32 = 2
const ForumNewAskedQuestion uint32 = 4
const ForumNewAnsweredQuestion uint32 = 8
const ForumNewCollectEntry uint32 = 16
const ForumNewOwnEntry uint32 = 32

const SkuStock string = "product:stock" // ##25.02.27#
const SkuStockFrozen string = "frozen"  // ##25.02.27#

const UserUsedCoupon string = "user:coupon" // ##25.05.21#
const OrderFrozen string = "orderid:frozen" // ##25.05.21#

const ForumShoppingCart string = "forum:cart" // ##25.03.21##

const RemainingIntegral string = "taskRemainingIntegral" // ##25.03.14#

const WexinAccessToken string = "weixin:access_token"

/*
1.查询缓存，如果缓存存在，返回结果
2.缓存不存在，查询数据库
3.争夺分布式锁
4.成功获得锁，再次判断缓存的存在
5.如果缓存仍旧不存在，把查询数据库的结果循环放入缓存
6.释放分布式锁
*/
